﻿using System;
using System.Data.Linq.Mapping;

namespace WP7PhoneTracker.EntityClasses
{
    [Table]
    public class Tracking
    {
        [Column(IsPrimaryKey = true, IsDbGenerated = true)]
        public int Id { get; set; }

        [Column(CanBeNull = true, UpdateCheck = UpdateCheck.WhenChanged)]
        public Double Latitude { get; set; }

        [Column(CanBeNull = true, UpdateCheck = UpdateCheck.WhenChanged)]
        public Double Longitude { get; set; }

        [Column(CanBeNull = true, UpdateCheck = UpdateCheck.WhenChanged)]
        public String LocationName { get; set; }

        [Column(CanBeNull = true, UpdateCheck = UpdateCheck.WhenChanged)]
        public String CityName { get; set; }

        [Column(CanBeNull = true, UpdateCheck = UpdateCheck.WhenChanged)]
        public String CountryName { get; set; }

        [Column(CanBeNull = true, UpdateCheck = UpdateCheck.WhenChanged)]
        public Double Speed { get; set; }

        [Column(CanBeNull = true, UpdateCheck = UpdateCheck.WhenChanged)]
        public Double Altitude { get; set; }

        [Column(CanBeNull = true, UpdateCheck = UpdateCheck.WhenChanged)]
        public Double Course { get; set; }

        [Column(CanBeNull = true, UpdateCheck = UpdateCheck.WhenChanged)]
        public Double VerticalAccuracy { get; set; }

        [Column(CanBeNull = true, UpdateCheck = UpdateCheck.WhenChanged)]
        public Double HorizontalAccuracy { get; set; }

        [Column(CanBeNull = true, UpdateCheck = UpdateCheck.WhenChanged)]
        public DateTime DtRegistered { get; set; }

        [Column(CanBeNull = true, UpdateCheck = UpdateCheck.WhenChanged)]
        public int? TrackingNameId { get; set; }

    }
}